<?php



Route::prefix('zadmin')->namespace('Admin')->group(function(){
	Route::middleware('checkAdmin')->group(function(){
		
		Route::get('refresh-geo','IndexController@refreshGeo')	;
		Route::get('refresh-billboard','IndexController@refreshBillboard');	
		Route::resource('admins',     'AdminController');
		Route::resource('users',      'UserController');
		Route::resource('banner',     'BannerController');
		Route::resource('menus',      'MenuController');
		Route::resource('services',   'ServiceController');
		Route::resource('billboard',   'BillboardController');
		Route::resource('votes',	   'VoteController');
		Route::get('bp-delete/{id}',   'BillboardPicController@delete');
		Route::get('bp-thumb',    'BillboardPicController@thumb');
		Route::resource('category',   'CategoryController');
		Route::resource('systems',    'SystemController');
		

		
		

		
		
		//后台首页
		Route::get('/',		   'IndexController@index');
		
	});
		Route::get('login',    'LoginController@login');
		Route::post('logindo', 'LoginController@loginDo');
		Route::get('logout',   'LoginController@logOut');
		
	
});


Route::get('index',		  'IndexController@index');
Route::get('traffic' ,'IndexController@traffic');






